#pragma once
#include "stdafx.h"
#include <WinSock2.h>
#include <string>

using namespace std;

class Server;

class ServerClient
{
	Server* server;
	string name;
	//Thread Stuff
	
	static DWORD WINAPI ThreadFunc(LPVOID pvParam);
protected:
	SOCKET mySocket;
public:
	ServerClient(void);
	~ServerClient(void);
	void setName(string n);
	void setSocket(SOCKET);
	bool listen();
	void SendData(char *);
	void setCallback(Server* s);
	void run();
	void disconnect();
	string getName();
};

